import request from '@/utils/request'

// 查询会员签到列表
export function listBrand(query) {
  return request({
    url: '/prod-api/system/record/list',
    method: 'get',
    params: query
  })
}

export function bulidBrandSelect() {
  return request({
    url: '/prod-api/system/record/bulidSelect',
    method: 'get'
  })
}

// 修改会员签到状态
export function updateBrandStatus(recordId, dataStatus){
  const data = {
    recordId,
    dataStatus
  }
  return request({
    url: '/prod-api/system/record/updateRecordStatus',
    method: 'put',
    data: data
  })
}

// 查询会员签到详细
export function getBrand(recordId) {
  return request({
    url: '/prod-api/system/record/' + recordId,
    method: 'get'
  })
}

// 新增会员签到
export function addBrand(data) {
  return request({
    url: '/prod-api/system/record',
    method: 'post',
    data: data
  })
}

// 修改会员签到
export function updateBrand(data) {
  return request({
    url: '/prod-api/system/record/updateBrand',
    method: 'put',
    data: data
  })
}

// 删除会员签到
export function delBrand(brandUid) {
  return request({
    url: '/prod-api/system/record/' + brandUid,
    method: 'delete'
  })
}
